home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / gexamples / Makefile.aimk < prev    next >
Makefile  |  1997-07-22  |  2KB  |  84 lines

  1. #
  2. # $Id: Makefile.aimk,v 1.3 1997/05/08 16:07:23 pvmsrc Exp $
  3. #
  4. # Makefile for PVM group library example programs.
  5. #
  6. # Set PVM_ROOT to the path where PVM includes and libraries are installed.
  7. # Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.)
  8. # Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, etc.)
  9. # otherwise leave ARCHLIB blank
  10. #
  11. # PVM_ARCH and ARCHLIB are set for you if you use "$PVM_ROOT/lib/aimk"
  12. # instead of "make".
  13. #
  14.  
  15. #PVM_ROOT    =
  16. #PVM_ARCH    =
  17. #ARCHCFLAGS    =
  18.  
  19. SHELL    =    /bin/sh
  20. PVMDIR    =    ../..
  21. PVMIDIR    =    $(PVMDIR)/include
  22. PVMLDIR    =    $(PVMDIR)/lib/$(PVM_ARCH)
  23. PVMLIB    =    $(LOPT) -L$(PVMLDIR) -lgpvm3 -lpvm3 $(ARCHLIB)
  24. CFLOPTS    =    -g
  25. CFLAGS    =    $(CFLOPTS) -I$(PVMIDIR) $(ARCHCFLAGS)
  26. SDIR    =    $(PVMDIR)/gexamples
  27. BDIR    =    $(PVMDIR)/bin
  28. XDIR    =    $(BDIR)/$(PVM_ARCH)
  29. #F77        =    f77
  30. FORT = `case "$(FC)@$(F77)" in *@) echo $(FC) ;; @*) echo $(F77) ;; *) echo f77;; esac`
  31. FFLOPTS    =    -g
  32. FFLAGS    =    $(FFLOPTS) -I$(PVMIDIR) $(ARCHFFLAGS)
  33. PVMFLIB    =    $(LOPT) -L$(PVMLDIR) -lfpvm3 $(PVMLIB) $(ARCHLIB)
  34.  
  35. all: joinleave gexamp tst thb tnb ge tjl tjf trsg frsg gs
  36.  
  37. joinleave: $(SDIR)/joinleave.c
  38.     $(CC) $(CFLAGS) -o joinleave $(SDIR)/joinleave.c $(PVMLIB)
  39.     cp joinleave $(XDIR)
  40.  
  41. tst: $(SDIR)/tst.c
  42.     $(CC) $(CFLAGS) -o tst $(SDIR)/tst.c $(PVMLIB)
  43.     cp tst $(XDIR)
  44.  
  45. gs: $(SDIR)/gs.c
  46.     $(CC) $(CFLAGS) -o gs $(SDIR)/gs.c $(PVMLIB)
  47.     cp gs $(XDIR)
  48.  
  49. ge: $(SDIR)/ge.c
  50.     $(CC) $(CFLAGS) -o ge $(SDIR)/ge.c $(PVMLIB)
  51.     cp ge $(XDIR)
  52.  
  53. gexamp: $(SDIR)/gexamp.c
  54.     $(CC) $(CFLAGS) -o gexamp $(SDIR)/gexamp.c $(PVMLIB)
  55.     cp gexamp $(XDIR)
  56.  
  57. thb: $(SDIR)/thb.c
  58.     $(CC) $(CFLAGS) -o thb $(SDIR)/thb.c $(PVMLIB)
  59.     cp thb $(XDIR)
  60.  
  61. tnb: $(SDIR)/tnb.c
  62.     $(CC) $(CFLAGS) -o tnb $(SDIR)/tnb.c $(PVMLIB)
  63.     cp tnb $(XDIR)
  64.  
  65. tjl: $(SDIR)/tjl.c
  66.     $(CC) $(CFLAGS) -o tjl $(SDIR)/tjl.c $(PVMLIB)
  67.     cp tjl $(XDIR)
  68.  
  69. tjf: $(SDIR)/tjf.c
  70.     $(CC) $(CFLAGS) -o tjf $(SDIR)/tjf.c $(PVMLIB)
  71.     cp tjf $(XDIR)
  72.  
  73. trsg: $(SDIR)/trsg.c
  74.     $(CC) $(CFLAGS) -o trsg $(SDIR)/trsg.c $(PVMLIB)
  75.     cp trsg $(XDIR)
  76.  
  77. frsg: $(SDIR)/frsg.f
  78.     $(FORT) $(FFLAGS) -o frsg $(SDIR)/frsg.f $(PVMFLIB)
  79.     cp frsg $(XDIR)
  80.  
  81. clean:
  82.     rm -f *.o tst thb tnb tjl tjf ge gexamp gs joinleave trsg frsg
  83.  
  84.